package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.AppDetailOffShelveCardBean;
import o.cgz;
import o.eqx;
import o.ewm.e;
import o.ewm.j;

public class AppDetailOffShelveCard extends BaseDistCard {
    public AppDetailOffShelveCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        this.ʽॱ = (ImageView) view.findViewById(j.ᐠॱ);
        this.ʿ = (TextView) view.findViewById(j.ᐝߴ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        if (cardBean instanceof AppDetailOffShelveCardBean) {
            if (this.ʽॱ != null) {
                eqx.ॱ(this.ʽॱ, ((AppDetailOffShelveCardBean) cardBean).ॱ(), e.ˋ);
            }
            if (this.ʿ != null) {
                this.ʿ.setText(((AppDetailOffShelveCardBean) cardBean).ˊ());
            }
        }
    }
}
